<!-- 设定每页多少条 -->
{dede:config.pagesize value="20"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>院校MBA库管理</title>
<link href="css/base.css" rel="stylesheet" type='text/css'>
<script language='javascript'>
// 全选or反选
function Sel(stype)
{
	  for(var i=0;i < document.getElementsByName('college_ids').length;i++)
	  {
		  if(stype=='all') document.getElementsByName('college_ids')[i].checked=true;
		  else document.getElementsByName('college_ids')[i].checked=false;
	  }
}

// 删除按钮动作
function checkSubmit()
{
	var str = '';
	for(var i=0;i < document.getElementsByName('college_ids').length;i++)
	{
		  if(document.getElementsByName('college_ids')[i].checked){
		  	if(str=='') str += document.getElementsByName('college_ids')[i].value;
		  	else str += ',' + document.getElementsByName('college_ids')[i].value;
		  }
	}
	if(str=='')
	{
		alert('你没选择任何内容！');
		return false;
	}
	else
	{
    if (confirm("确定删除选中院校?")) {
      location="collegeinfo_delete.php?college_ids="+str+"&dopost=delall";
    }else{
      return false;
    }
	}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>

<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
    <td height="28" background="images/tbg.gif" colspan="9" style="padding-left:10px;">
  <div style="float:left">
  	<b>院校MBA库管理</b>
	</div>
	<div style="float:right;padding-right:6px;">
		[<a href="collegeinfo_add.php"><u>增加院校</u></a>]
 	 	[<a href="stepselect_main.php"><u>院校类别管理</u></a>]
  	[<a href='<?php echo $cfg_cmsurl; ?>/plus/collegelist.php' target='_blank'><u>院校MBA首页预览</u></a>]
  </div>
  </td>
</tr>
<tr>
   <td height="30" align="center" bgcolor="#F9FCEF"  colspan="9"> 
   <form action="collegeinfo_list.php" name="form1" method="get">
	  <table border="0" cellspacing="0" cellpadding="3">
      <tr>
          <td>院校名称：</td>
          <td><input name="keyword" type="text" id="keyword" size="12" style="width:250px" value="<?php echo $keyword; ?>" /></td>
          <td>地区</td>
          <td>
          	<?php echo GetEnumsForm('area',$search_area,'search_area'); ?>
          </td>
          <td>学费</td>
          <td>
            <?php echo GetEnumsForm('feeRange',$search_feerange,'search_feerange'); ?>
          </td>
          <td>项目类型</td>
          <td>
            <?php echo GetEnumsForm('projectType',$search_projecttype,'search_projecttype'); ?>
          </td>
          <td>
           <input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
          </td>
        </tr>
      </table>
	  </form>
    </td>
</tr>
<form name='form1' method='post' action='friendlink_edit.php' onSubmit='return checkSubmit();'>

<tr align="center" bgcolor="#FBFCE2" height="26">
          <td width="6%">选择</td>
          <td width="23%">学校名称</td>
          <td width="12%">所在地区</td>
          <td width="15%">学费</td>
          <td width="8%">项目类型</td>
          <td width="8%">院校性质</td>
          <td width="8%">国际认证</td>
          <td width="7%">分数线</td>
          <td width="15%">管理</td>
        </tr>
        {dede:datalist}
        <tr align="center" bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';"
        	 onMouseOut="javascript:this.bgColor='#FFFFFF';">
          <td><input type='checkbox' name='college_ids' value='{dede:field.collegeId/}' class='np'></td>
          <td>{dede:field.name/}</td>
          <td>{dede:field.area function="GetEnumsValue('area',@me)"/}</td>
          <td><?php echo  DealFee($fields['lowestFee'],$fields['highestFee']); ?></td>
          <td>{dede:field.projectType function="deal_multivalue('projectType',@me)"/}</td>
          <td>{dede:field.level function="deal_multivalue('level',@me)"/}</td>
          <td>{dede:field.interAttest/}</td>
          <td>{dede:field.scoreType function="GetEnumsValue('scoreType',@me)"/}</td>
          <td>
            <a href='../wenda/index.php?ct=collegeinfo_detail&ac=index&schoolId={dede:field.collegeId/}' target="_blanket">[查看]</a>
          	<a href='collegeinfo_edit.php?college_id={dede:field.collegeId/}&dopost=getedit'>[编辑]</a>
		        <a href='collegeinfo_delete.php?college_id={dede:field.collegeId/}&dopost=delete' onclick="if(confirm('确定删除?')==false)return false;">[删除]</a>
		      </td>
        </tr>
		{/dede:datalist}
    </form>
     <tr bgcolor="#ffffff" height="28">
      <td colspan="9">
      	　
        <a href='#' onclick='Sel("all")' class='np coolbg'>[全选]</a>
      	<a href='#' onclick='Sel("none")' class='np coolbg'>[取消]</a>
      	<a href='#' onclick='checkSubmit()' class='np coolbg'>批量删除</a>

      </td>
     </tr>
     <tr align="center" bgcolor="#F9FCEF" height="28">
      <td colspan="9">
      	{dede:pagelist listsize=6/}
      </td>
     </tr>
   </table>
  </td>
</tr>
</table>
</body>
</html>